home *** CD-ROM | disk | FTP | other *** search
- HAT DOES THIS DO?
- -----------------
- his patch adds sounds to events in olvwm and it adds an optional visual
- peedup to olvwm.
- vents are all the things that the window manager deals with. They include
- hings like mapping and unmapping windows, mouse button events, key presses
- in the root window) and many others.
- he sounds can be (semi)dynamically bound to events and the sounds can be
- urned on and off with a menu option.
- he speedup consists of disabling the drawing of lines from the icon to the
- ull window when opening or closing a window. This speedup is disabled by
- efault but can be enabled with a resource. To enable, add this to your
- Xdefaults file:
-
- olvwm.iconToWindowLines: False
-
- t takes a little getting used to having windows just pop up without knowing
- here their icons were, but after a while you get really used to the speed
- ith which you can open and close windows.
-
- ARDWARE NEEDED
- --------------
- his patch will only work if olvwm is going to run on a machine with a
- PARC processor which has the ability to play sounds. Examples of such
- achines include Sun 4/25, Sun 4/60 and Sun 4/690. There are many others,
- lso ones not made by Sun.
-
- OFTWARE NEEDED
- --------------
- n order to compile this, you will need to get Mark Boyns' rplay library
- anonymous ftp @ sounds.sdsu.edu:/pub/rplay2.0.tar.Z)
- play is a neat facility which allows one to play multiple sounds
- n a machine. The sounds names are sent using UDP packets and therefore
- o not use up much network bandwidth.
- e use rplay for all kinds of things in our office, although it was
- riginally developed to add sounds to games like xtank and xpilots.
- ven if you don't want to use it with your window manager, you should
- et it for other things. We use it extensively for alarms and mail
- otification. You may wonder why we don't just use 'play'. Well, we
- sed to, but rplay allows sounds to be played on remote machines AND
- t allows multiple sounds to be played. In other words, it I am playing
- long song and some important mail comes in, the mail sound will be mixed
- ith the currently playing song.
-
- OW TO COMPILE AND INSTALL
- -------------------------
- ou need to first get a copy of the olvwm3.2 sources. (Check your nearest
- rchie database for locations of olvwm3.2.tar.Z or something similar)
- xtract the sources into a directory.
- o to this directory and type: patch -p0 <olvwm3.2-sounds.patch
- opefully this will all work.
- ow use your favorite way to compile olvwm. (I use 'make -f Makefile.sunpro')
- f you are currently running olvwm, it would be wise to rename it to
- omething else: mv /usr/local/bin/olvwm /usr/local/bin/olvwm.old
- ollow the normal installation instructions for olvwm. (See the README file)
-
- OW DOES IT WORK?
- ----------------
- nce you have a copy of the new olvwm, you can run it.
- here are a couple of things you need to do in order to make the sound
- dditions usefull.
- irst, you need to add a couple of items to your Utilities menu.
- ere is what I added:
-
- "Toggle Sound" FLIPSOUND
- "Reread sounds" REREADSOUNDS
-
- his will then allow you to 1) turn the sounds on and off, and 2) reread
- he event->sounds database.
-
- ow you need to create a file called .olvwm-sounds in your home directory.
- his file contains the mappings from events to sounds. The syntax is very
- imple:
-
- Event: sound
-
- or example, I have the following (I am a startrek fan...)
-
- KeyPress: bloop2.au
- MotionNotify: Boiling.au
- UnmapNotify: mute2.au
- MapNotify: turbbeep.au
- Startup: welcome.au
- Shutdown: com-functions.au
-
- complete list of events can be found in Debug.c of the olvwm sources.
- he Startup and Shutdown events are not real olvwm events. I have added
- hose so that you can play sounds at startup and shutdown of the window
- anager.
-
- henever you make a change to the .olvwm-sounds file, you need to use the
- Reread sounds" menu item to let olvwm know about the changes.
-
- ince editing this .olvwm-sounds file by hand can get really old really
- ast, I have also written a tool to do this for you. It gives you two
- ists, one with all the events and the other with all the sounds which
- re registered with rplay.
- will make this tool available for anonymous ftp @ sounds.sdsu.edu
- n /pub/olvwmtool.shar. Note that I used Sun's DevGuide to write this
- pplication. This is why I also have a (statically linked) sun4
- xecutable in /pub/olvwmtool. The shar file contains all the files that
- evGuide generates, so you should be able to compile it without DevGuide.
-
- ISCELANEOUS
- -----------
- eople may wonder what the overhead is to the window manager. Well,
- ach sound that is played takes one (small) UDP packet. The rplayd
- rogram receives this packet and plays the sound, but it does not take
- uch cpu time to do it. (sounds are mostly interrupt driven)
- have not noticed any slowdown with this addition to the window manager.
-
- VAILABILITY
- -----------
- he latest version of all our sound programs will always be available for
- nonymous ftp on sounds.sdsu.edu in the /pub directory
- he archive also has about 350 MB of Sun U-LAW sound files. Check it out.
- New uploads are always welcome, especially sound effects)
-
- ROBLEMS
- -------
- f you have any problems or comments, please let me know. I can be reached
- t andrew@sdsu.edu
-